﻿namespace TrackSystem.Entities.Extensions
{
    /// <summary>
    /// 变量类型
    /// </summary>
    public enum VarSerialEnum
    {
        Attr_Channel = 0, 
        /// <summary>
        /// 传感器类型
        /// </summary>
        /// <summary>
        /// 通道属性变量
        /// </summary>
        Sensor,
        /// <summary>
        /// 传感器属性变量
        /// </summary>
        Attr_Sensor,    
        /// <summary>
        /// 控制回路类型
        /// </summary>
        Loop, 
        /// <summary>
        /// 回路属性
        /// </summary>
        Attr_Loop,
        /// <summary>
        /// 逻辑回路属性
        /// </summary>
        Attr_Logic,
        /// <summary>
        /// 从站属性
        /// </summary>
        Attr_Slave,
        /// <summary>
        /// 记录属性
        /// </summary>
        Attr_Record,
        /// <summary>
        /// 用户定义变量
        /// </summary>
        UserDefine = 10,              
    }

    public enum VarTypeEnum
    {
        /// <summary>
        /// 位变量
        /// </summary>
        Bool = 0,
        /// <summary>
        /// 整数变量
        /// </summary>
        Int,
        /// <summary>
        /// 浮点变量
        /// </summary>
        Float,
        /// <summary>
        /// 字符串变量
        /// </summary>
        String,
        /// <summary>
        /// 时间变量
        /// </summary>
        Time
    }

    public enum AlarmTypeEnum
    {
        /// <summary>
        /// 不报警
        /// </summary>
        None = 0,
        /// <summary>
        /// 高报警
        /// </summary>
        High,
        /// <summary>
        /// 低报警
        /// </summary>
        Low,
        /// <summary>
        /// 高低报警
        /// </summary>
        HighLow
    }
}
